
var data = [{
    "text": "[镇魂街：武神躯]初级礼包",
    "text链接": "https://ka.9game.cn/personal/2611214827288289675.html",
    "img": "http://image.9game.cn/s/9game/g/2021/1/5/198709995.png",
    "residue": "                              剩余      68% ",
    "btn60green": "      领号       "
}, {
    "text": "[新征战]年货福利",
    "text链接": "https://ka.9game.cn/personal/2611056754288230809.html",
    "img": "http://image.9game.cn/s/9game/g/2020/11/13/185915183.png",
    "residue": "  剩余          96%                                      ",
    "btn60green": "  领号       "
}, {
    "text": "[仙坠凡尘]新手礼包",
    "text链接": "https://ka.9game.cn/personal/2605087244294797439.html",
    "img": "http://image.9game.cn/s/9game/g/2020/10/27/183309727.png",
    "residue": "       剩余      0%     ",
    "btn60green": "淘号"
}];
var str = '';
for (var j = 0; j < data.length; j++) {
    str += `<div class="kuang">
    <img src="${data[j].img }" alt="">
    <p class="lefttitle">${data[j].text}</p>
    <p class="residue">${data[j].residue}</p>
    <p><span>${data[j].btn60green}</span></p>
  </div>
  `
}
var left = document.querySelector('.left');
left.innerHTML = str;



var data1 = [{
    "title": "[镇魂街：武神躯]初级礼包",
    "title链接": "https://ka.9game.cn/personal/2611214827288289675.html",
    "num": "1",
    "num1": "领"
}, {
    "title": "[天地劫：幽城再临]测试激活码",
    "title链接": "https://ka.9game.cn/personal/2603077237279233966.html",
    "num": "2",
    "num1": "领"
}, {
    "title": "[三国杀移动版]iOS礼包",
    "title链接": "https://ka.9game.cn/personal/2606303207279328701.html",
    "num": "3",
    "num1": "领"
}, {
    "title": "[新征战]一月福利",
    "title链接": "https://ka.9game.cn/personal/2610437678256794093.html",
    "num": "4",
    "num1": "完"
}, {
    "title": "[新斗罗大陆]iOS官方推广礼包",
    "title链接": "https://ka.9game.cn/personal/2606375788279257310.html",
    "num": "5",
    "num1": "领"
}]
var str1 = '';
for(var i=0;i<data1.length;i++){
    str1+=`
    <li><span>${data1[i].num}</span> <a href="">${data1[i].title}</a> <P>${data1[i].num1}</P></li>
    `
}
var rightul=document.querySelector('.righttop ul');
rightul.innerHTML=str1;